package com.dancun.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.dancun.entity.Solve;
import com.dancun.mapper.SolveMapper;
import com.dancun.service.ISolveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-10-02
 */
@Service
public class SolveServiceImpl extends ServiceImpl<SolveMapper, Solve> implements ISolveService {
    @Autowired
    SolveMapper solveDao;

    @Override
    public List<Solve> listByName(String name) {
        return solveDao.listByName(name);
    }

    @Override
    public List<Solve> list() {
        return solveDao.list();
    }
}
